<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <body>
        <ui:composition template="./LoginTemplate.xhtml">
            <ui:define name="content">
                <f:view>
                    <h:form>
                        <h1><h:outputText value="Create/Edit"/></h1>
                        <p:growl/>
                        <p:panel>
                            <h:panelGrid columns="2">
                                <h:outputLabel value="No. Control:" for="control" />
                                <p:inputText id="control" value="#{UsuariosBean.u.control}" title="Control" required="true" requiredMessage="The Control field is required."/>
                                <h:outputLabel value="Password:" for="password" />
                                <p:password feedback="false" minLength="3" id="password" value="#{UsuariosBean.u.password}" title="Password" required="true" requiredMessage="The Password field is required."/>
                            </h:panelGrid>
                        </p:panel>                   
                        <p:commandButton ajax="false" action="#{UsuariosBean.validarUsuario}" value="Aceptar"/>
                    </h:form>
                </f:view>
            </ui:define>
        </ui:composition>
    </body>
</html>
